﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EFCore7
{
    [Table(name: "Biz_Coupons")]
    public class Biz_Coupons
    {
        [Key]
        [Description("Id")]
        public int Id { get; set; }

        [Column(TypeName = "varchar(255)"), Required]
        [Description("Name")]
        public string Name { get; set; }

        [Description("Owner")]
        public string Owner { get; set; }

        [Description("CreateTime")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}